package com.dhb.pattern.singleton;

import com.dhb.pattern.singleton.hungry.HungrySingleton;
import com.dhb.pattern.singleton.hungry.HungryStaticblockSingleton;

/**
 * 功能描述：
 * 创建人：citymoon
 * 创建日期：2019/5/4
 */
public class HungrySingletonExecuteThread implements Runnable{
    @Override
    public void run() {
//        HungrySingleton hungrySingleton = HungrySingleton.getInstance();
        HungryStaticblockSingleton hungrySingleton = HungryStaticblockSingleton.getInstance();
        System.out.println(Thread.currentThread().getName() + ":" +hungrySingleton);
    }
}
